package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;


/**
 * 攻略评论服务
 */
public interface IStrategyCommentService {

    /**
     * 添加更新
     */
    void saveOrUpdate(StrategyComment comment);

    /**
     * 添加评论
     * @param strategyComment
     */
    void save(StrategyComment strategyComment);

    /**
     * 查询攻略评论
     * @param qo
     * @return
     */
    Page query(StrategyCommentQuery qo);

    /**
     * 点赞评论
     * @param toid //评论id
     * @param fromid //用户id
     */
    void commentThumbUp(String toid, Long fromid);

    StrategyComment getByNewTime(Long id) throws  Exception;
}
